package com.ruoyi.business.controller;

import java.util.HashMap;
import java.util.Iterator;
import java.util.List;
import java.util.Map;

import org.apache.commons.lang3.ArrayUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import com.ruoyi.common.core.constant.UserConstants;
import com.ruoyi.common.core.utils.SecurityUtils;
import com.ruoyi.common.core.utils.StringUtils;
import com.ruoyi.common.core.web.controller.BaseController;
import com.ruoyi.common.core.web.domain.AjaxResult;
import com.ruoyi.common.log.annotation.Log;
import com.ruoyi.common.log.enums.BusinessType;
import com.ruoyi.common.security.annotation.PreAuthorize;
import com.ruoyi.system.api.domain.SysDept;
/**
 * @program: ruoyi
 * @description:
 * @author: Chiry
 * @create: 2021-07-31 21:07
 * 查看网关映射地址：http://localhost:8080/actuator/gateway/routes
 * 通过网关测试： http://localhost:8080/business/curl/test
 * 直接访问服务： http://localhost:9301/curl/test
 **/
@RestController
@RequestMapping("/curl")
public class BusTestController extends BaseController {
    @GetMapping("/test")
    public Map<String ,Object > TestBusiness(){
        HashMap<String, Object> map = new HashMap<>();
        map.put("status ", "success");
        return  map;
    }
}
